<!doctype html>
<html xmlns="http://www.w3.org/1999/xhtml" id="html">
    <head>
        <title></title>
        <meta http-equiv="content-type" content="text/html; charset=utf-8" />
        <base href="<?= base_url(1); ?>" />
        <link type="text/css" href="css/main.css?v=<?= $config['version'] ?>" rel="stylesheet" />
        <script type="text/javascript">
        
	function getModuleDetail()
	{
		var tableenum = $('#tableenum').val();
		//alert(tableenum);
		//alert(i);
		//判断选的模块名是否合法 之前是否已经选择过了？

		var mdl = <?=json_encode($moduleDetailList)?>;
		var csl = <?=json_encode($columnStringList)?>;
		
		var strOption = '';

		for(var columnName in mdl[tableenum])
		{
			//添加页面不显示此选项
			if(columnName == 'strategyid')
			{
				//strOption +='<tr><td size = "100">&nbsp;'
				//+'</td><td>&nbsp;<input type="hidden" name="row['+columnName+']" id="'+columnName+'" value="'+tableenum+'"></td></tr>';
			}else
			{
			strOption +='<tr><td size = "100">&nbsp;'+csl[tableenum][columnName]
					+'</td><td>&nbsp;<input name="row['+columnName+']" id="'+columnName+'"></td></tr>';
			}
			//alert(' columnname = '+columnName+" stroption = "+strOption);
			if(columnName == 'strategyname')
			{
				$("#"+columnName).formValidator({empty: false, onshow: '<?= translate('C_NOT_EMPTY') ?>'}).inputValidator({min: 1, onerrormin: '<?= translate('C_NOT_EMPTY') ?>'});
			}else
			{
				$("#"+columnName).formValidator({empty: false, onshow: '<?= translate('C_NOT_EMPTY') ?>'}).regexValidator({regexp: 'num', datatype: 'enum', onerror: '<?= translate('C_ONLY_NUM') ?>'});
			}
		}
	
		//alert(strOption); 
		$('#add').html(strOption);
	} 
	
	function getModuleList()
	{
		var modList = <?=json_encode($moduleList)?>;
		//alert(modList);
		var strOption = '';
	    for(var one in modList)
	    {
	    	strOption += '<option value="'+modList[one]['tableenum']+'" >'+modList[one]['des']+'</option>';
	    }
	    return strOption;
	}

	function checkValid()
	{
		var tableenum = $('#tableenum').val();
		//alert(tableenum);
		
		if('-1' == tableenum)
		{
			alert("please starategy id ");
			return false;
		}

		//把不需要的剔除掉
		
		var mdl = <?=json_encode($moduleList)?>;

		for(var one in mdl)
		{
			var showIdName = mdl[one]['tablename']; //显示示模块的名字
			if( one == tableenum)
			{
				continue;
			}else
			{
				$('#'+showIdName).remove();
			}    
		}
		
		return true;
	}

	//显示相应的模块名
	function showModule()
	{
		var tableenum = $('#tableenum').val();
		//alert(tableenum);
		var mdl = <?=json_encode($moduleList)?>;
		var testShowTable = '';
		var testHideTable = '';
		 for(var one in mdl)
		    {
			    var showIdName = mdl[one]['tablename']; //显示示模块的名字
			    //var startPos = 'act_mod_';
			    //startPos = startPos.length;
			    //alert(startPos);
			    //var totalLength = showIdName.length;
			    //showIdName = showIdName.substr(startPos);

		    	if(one == tableenum)
		    	{
		    		$("#"+showIdName).show();
		    	}else
		    	{
		    		$("#"+showIdName).hide();
		    	}
		    }

	}

	function hideAll()
	{
		var mdl = <?=json_encode($moduleList)?>;
		var showHideNameList = '';
		for(var one in mdl)
		{
			var showIdName = mdl[one]['tablename']; //显示示模块的名字
			$("#"+showIdName).hide();

			$("#"+showIdName).css({ display: "none" });
			
			showHideNameList += showIdName+' ';
		}
		//alert(showHideNameList);
	}
	
	</script>
    </head>
    <body>
        <?php include(VIEWPATH . 'common/main_header.php'); ?>
        <?php 
        	 
        ?>
<form action="" method="POST" id="rowForm">
<table id="tb" width="100%" border="0" cellspacing="1" cellpadding="0"	class="tablegrid tableedit">

	<tr>
		<td><?= translate('ACTIVITY_MODULE_MODULENAME') ?>:</td>
		<td><select name="row[tableenum]" id="tableenum" onChange="showModule()">
			<option value="-1"><?= translate('PLASE_SELECT') ?></option>
			<?php foreach ($moduleList as $tableenum => $value) {?>
			<option value="<?=$tableenum ?>"><?=$value['des'] ?></option>
			<?php }?>
		</select></td>
	</tr>
	
	<tr>
	<td><?= translate('ACTIVITY_STRATEGY_STRAGEGYNAME') ?></td>
	<td><input type="text" name="row[strategyname]" id="strategyname"
		value="<?= $row['strategyname'] ?>"></td>
	</tr>

	<tr><td>&nbsp;</td><td>&nbsp;</td></tr>
	
	
	
	<!-- 守卫拉夫尔开始 -->
	<div name="moduleGroup" >
	<table width="100%" id="act_mod_aelafuer" style="display: none">
		<tr>
			<td><?= translate('ACTIVITY_AELAFUER_TIMES') ?></td>
			<td><input type="text" name="row[times]" id="act_mod_aelafuer_times" /></td>
		</tr>
		<tr>
			<td><?= translate('ACTIVITY_AELAFUER_DROPNUM') ?></td>
			<td><input type="text" name="row[dropnum]" id="act_mod_aelafuer_dropnum" /></td>
		</tr>
	</table>
	</div>
	<!-- 守卫拉夫尔结束 -->

	<!-- 圣魂开始 -->
	<div name="moduleGroup">
	<table width="100%"  id="act_mod_angelbless" style="display: none">
		<tr>
			<td><?= translate('ACTIVITY_ANGELBLESS_GOLDRATIO') ?></td>
			<td><input type="text" name="row[goldratio]" id="act_mod_angelbless_goldratio"/></td>
		</tr>
		<tr>
			<td><?= translate('ACTIVITY_ANGELBLESS_COSTDIAMOND') ?></td>
			<td><input type="text" name="row[costdiamond]" id="act_mod_angelbless_costdiamond"/></td>
		</tr>
	</table>
	</div>
	<!-- 圣魂结束 -->

	<!-- boss战开始 -->
	<div name="moduleGroup" id="act_mod_bossfight" style="display: none">
	<table width="100%">
		<tr>
			<td><?= translate('ACTIVITY_BOSSFIGHT_GOLD') ?></td>
			<td><input type="text" name="row[gold]" id="act_mod_bossfight_gold"/></td>
		</tr>
		<tr>
			<td><?= translate('ACTIVITY_BOSSFIGHT_EXP') ?></td>
			<td><input type="text" name="row[exp]" id="act_mod_bossfight_exp"></td>
		</tr>
		<tr>
			<td><?= translate('ACTIVITY_BOSSFIGHT_MAILREWARD') ?></td>
			<td><input type="text" name="row[mailreward]" id="act_mod_bossfight_mailreward"></td>
		</tr>
	</table>
	</div>
	<!-- boss战结束 -->

	<!-- 购买疲劳值开始 -->
	<div name="moduleGroup" id="act_mod_buy_tired" style="display: none">
	<table width="100%">
		<tr>
			<td><?= translate('ACTIVITY_BUYTIRED_DISCOUNT') ?></td>
			<td><input type="text" name="row[discount]" id="act_mod_buy_tired_discount"/></td>
		</tr>
		<tr>
			<td><?= translate('ACTIVITY_BUYTIRED_TIREDPARAM') ?></td>
			<td><input type="text" name="row[tiredparam]" id="act_mod_buy_tired_tiredparam"></td>
		</tr>
	</table>
	</div>
	<!-- 购买疲劳值结束 -->

	<!-- 死亡之塔开始 -->
	<div name="moduleGroup" id="act_mod_deadtower" style="display: none">
	<table width="100%">
		<tr>
			<td><?= translate('ACTIVITY_DEADTOWER_GOLD') ?></td>
			<td><input type="text" name="row[gold]" id="act_mod_deadtower_gold"/></td>
		</tr>
		<tr>
			<td><?= translate('ACTIVITY_DEADTOWER_EXP') ?></td>
			<td><input type="text" name="row[exp]" id="act_mod_deadtower_exp"></td>
		</tr>
	</table>
	</div>
	<!-- 死亡之塔结束 -->

	<!-- 魔王副本开始 -->
	<div name="moduleGroup" id="act_mod_devils" style="display: none">
	<table width="100%">
		<tr>
			<td><?= translate('ACTIVITY_DEVILS_CHALLENGETIME') ?></td>
			<td><input type="text" name="row[challengetime]" id="act_mod_devils_challengetime"/></td>
		</tr>
	</table>
	</div>
	<!-- 魔王副本结束 -->

	<!-- 精英副本开始 -->
	<div name="moduleGroup" id="act_mod_elite" style="display: none">
	<table width="100%">
		<tr>
			<td><?= translate('ACTIVITY_ELITE_CHALLENGETIME') ?></td>
			<td><input type="text" name="row[challengetime]" id="act_mod_elite_challengetime"/></td>
		</tr>
	</table>
	</div>
	<!-- 精英副本结束 -->

	<!-- 副本翻牌开始 -->
	<div name="moduleGroup" id="act_mod_fb_card_switch" style="display: none">
	<table width="100%">
		<tr>
			<td><?= translate('ACTIVITY_FBCARDSWITCH_COSTGOLD') ?></td>
			<td><input type="text" name="row[cost_gold]" id="act_mod_fb_card_switch_cost_gold"/></td>
		</tr>
		<tr>
			<td><?= translate('ACTIVITY_FBCARDSWITCH_OBJECTREWARD') ?></td>
			<td><input type="text" name="row[object_reward]" id="act_mod_fb_card_switch_object_reward"></td>
		</tr>
	</table>
	</div>
	<!-- 副本翻牌结束 -->

	<!-- 公会技能开始 -->
	<div name="moduleGroup" id="act_mod_gangskill" style="display: none">
	<table width="100%">
		<tr>
			<td><?= translate('ACTIVITY_GANGSKILL_COEFFICIENT') ?></td>
			<td><input type="text" name="row[coefficient]" id="act_mod_gangskill_coefficient"></td>
		</tr>
	</table>
	</div>
	<!-- 公会技能结束 -->

	<!-- 荣誉商店开始 -->
	<div name="moduleGroup" id="act_mod_honorshop" style="display: none">
	<table width="100%">
		<tr>
			<td><?= translate('ACTIVITY_HONORSHOP_COST_DIAMOND') ?></td>
			<td><input type="text" name="row[cost_diamond]" id="act_mod_honorshop_cost_diamond"/></td>
		</tr>
	</table>
	</div>
	<!-- 荣誉商店结束 -->

	<!-- 属性强化开始 -->
	<!-- 
	<div name="moduleGroup" id="act_mod_intensifyattr" style="display: none">
	<table width="100%">
		<tr>
			<td><?= translate('ACTIVITY_INTENSIFYATTR_STONEFT') ?></td>
			<td><input type="text" name="row[stoneft]" id="act_mod_intensifyattr_stoneft"></td>
		</tr>
	</table>
	</div>
	 -->
	<!-- 属性强化结束 -->

	<!-- 竞技场开始 -->
	<div name="moduleGroup" id="act_mod_ladder" style="display: none">
	<table width="100%">
		<tr>
			<td><?= translate('ACTIVITY_LADDER_GOLD') ?></td>
			<td><input type="text" name="row[gold]" id="act_mod_ladder_gold"/></td>
		</tr>
		<tr>
			<td><?= translate('ACTIVITY_LADDER_HONORBADGE') ?></td>
			<td><input type="text" name="row[honorbadge]" id="act_mod_ladder_honorbadge"></td>
		</tr>
		<tr>
			<td><?= translate('ACTIVITY_LADDER_PRESITIGE') ?></td>
			<td><input type="text" name="row[presitige]" id="act_mod_ladder_presitige"></td>
		</tr>
		<tr>
			<td><?= translate('ACTIVITY_LADDER_CHALLENGETIME') ?></td>
			<td><input type="text" name="row[challengetime]" id="act_mod_ladder_challengetime"></td>
		</tr>
	</table>
	</div>
	<!-- 竞技场结束 -->

	<!-- 普通副本开始 -->
	<div name="moduleGroup" id="act_mod_nomalfb" style="display: none">
	<table width="100%">
		<tr>
			<td><?= translate('ACTIVITY_NOMALFB_GOLD') ?></td>
			<td><input type="text" name="row[gold]" id="act_mod_nomalfb_gold"/></td>
		</tr>
		<tr>
			<td><?= translate('ACTIVITY_NOMALFB_EXP') ?></td>
			<td><input type="text" name="row[exp]" id="act_mod_nomalfb_exp"></td>
		</tr>
		<tr>
			<td><?= translate('ACTIVITY_NOMALFB_OBJECT') ?></td>
			<td><input type="text" name="row[object]" id="act_mod_nomalfb_object"></td>
		</tr>
		<tr>
			<td><?= translate('ACTIVITY_NOMALFB_FINISHEXP') ?></td>
			<td><input type="text" name="row[finishexp]" id="act_mod_nomalfb_finishexp"></td>
		</tr>
	</table>
	</div>
	<!-- 普通副本结束 -->

	<!-- 决斗之颠开始 -->
	<div name="moduleGroup" id="act_mod_topfight" style="display: none">
	<table width="100%">
		<tr>
			<td><?= translate('ACTIVITY_TOPFIGHT_YQHFT') ?></td>
			<td><input type="text" name="row[yqhft]" id="act_mod_topfight_yqhft"/></td>
		</tr>
	</table>
	</div>
	<!-- 决斗之颠结束 -->

	<!-- 许愿池开始 -->
	<div name="moduleGroup" id="act_mod_wishpond" style="display: none">
	<table width="100%">
		<tr>
			<td><?= translate('ACTIVITY_WISHPOND_REFRESH') ?></td>
			<td><input type="text" name="row[refresh]" id="act_mod_wishpond_refresh"/></td>
		</tr>
		<tr>
			<td><?= translate('ACTIVITY_WISHPOND_SPEEDUP') ?></td>
			<td><input type="text" name="row[speedup]" id="act_mod_wishpond_speedup"></td>
		</tr>
		<tr>
			<td><?= translate('ACTIVITY_WISHPOND_EXTEND') ?></td>
			<td><input type="text" name="row[extend]" id="act_mod_wishpond_extend"></td>
		</tr>
		<tr>
			<td><?= translate('ACTIVITY_WISHPOND_SEEDCOST') ?></td>
			<td><input type="text" name="row[seedcost]" id="act_mod_wishpond_seedcost"></td>
		</tr>
		<tr>
			<td><?= translate('ACTIVITY_WISHPOND_HARVEST') ?></td>
			<td><input type="text" name="row[harvest]" id="act_mod_wishpond_harvest"></td>
		</tr>
		<tr>
			<td><?= translate('ACTIVITY_WISHPOND_PROBABILITY') ?></td>
			<td><input type="text" name="row[probability]" id="act_mod_wishpond_probability"></td>
		</tr>
		<tr>
			<td><?= translate('ACTIVITY_WISHPOND_GROUPTIME') ?></td>
			<td><input type="text" name="row[grouptime]" id="act_mod_wishpond_grouptime"></td>
		</tr>
	</table>
	</div>
	<!-- 许愿池结束 -->

	
<!-- 地精模块开始 -->
	<div name="moduleGroup" id="act_mod_treasurebox" style="display:none">
	<table width="100%">
		<tr>
			<td><?= translate('ACTIVITY_TREASUREBOX_LOWONERATIO') ?></td>
			<td><input type="text" name="row[lowone]" id="act_mod_treasurebox_lowone"
				value='<?=$row['lowone'] ?>' /></td>
		</tr>
		<tr>
			<td><?= translate('ACTIVITY_TREASUREBOX_LOWTENRATIO') ?></td>
			<td><input type="text" name="row[lowten]" id="act_mod_treasurebox_lowten"
				value='<?=$row['lowten'] ?>' /></td>
		</tr>
		<tr>
			<td><?= translate('ACTIVITY_TREASUREBOX_HIGHONERATIO') ?></td>
			<td><input type="text" name="row[highone]" id="act_mod_treasurebox_highone"
				value="<?= $row['highone'] ?>"></td>
		</tr>
		<tr>
			<td><?= translate('ACTIVITY_TREASUREBOX_HIGHTENRATIO') ?></td>
			<td><input type="text" name="row[highten]" id="act_mod_treasurebox_highten"
				value="<?= $row['highten'] ?>"></td>
		</tr>

		<tr>
			<td><?= translate('ACTIVITY_TREASUREBOX_LOWCOLDTIME') ?></td>
			<td><select name="row[lowcoldtime]" id="act_mod_treasurebox_lowcoldtime">
			<?php  for($count = 1; $count <= 100; ++$count) { ?>
				<option value="<?=$count ?>"
				<?php if($count == $row['lowcoldtime']) echo "selected"; ?>><?=$count ?></option>
				<?php } ?>
			</select></td>

		</tr>
		<tr>
			<td><?= translate('ACTIVITY_TREASUREBOX_HIGHCOLDTIME') ?></td>
			<td><select name="row[highcoldtime]" id="act_mod_treasurebox_highcoldtime">
			<?php  for($count = 1; $count <= 100; ++$count) { ?>
				<option value="<?=$count ?>"
				<?php if($count == $row['highcoldtime']) echo "selected"; ?>><?=$count ?></option>
				<?php } ?>
			</select></td>
		</tr>
	</table>
	</div>
	<!-- 地精模块结束  -->
	
	<!-- 圣魂开始 -->
	<!--  	//后续模板，待加
			    <div name="moduleGroup" id = "angelbless" style="display:none">
			    	<table width="100%">

					</table>
				</div>
				-->
	<!-- 圣魂结束 -->

	<tr>
		<td>&nbsp;</td>
		<td>&nbsp;</td>
	</tr>

	<tr><td>&nbsp;</td><td>&nbsp;</td></tr>

	<tr>
		<td><input type="submit" value="<?= translate('SUBMIT') ?>"	id="submit" onClick="return checkValid()" /></td>
		<td><input type="reset"	value="<?= translate('RESET') ?>" id="reset" /></td>
	</tr>

</table>
<script>
	//hideAll();	//隐藏所有的表单
</script>
</form>
<script type="text/javascript">
            SG.init("core.form", function() {
                $.formValidator.initConfig({formid: "#rowForm", submitonce: true});
                $("#strategyname").formValidator({empty: false, onshow: '<?= translate('C_NOT_EMPTY') ?>'}).inputValidator({min: 1, onerrormin: '<?= translate('C_NOT_EMPTY') ?>'});

                //守卫拉夫尔 act_mod_aelafuer
                $("#act_mod_aelafuer_times").formValidator({empty: false, onshow: '<?= translate('C_ONLY_NUM') ?>'}).regexValidator({regexp:'^[1-9]\d*|0$',onerror:'<?= translate('C_NUM_BIGTHEN_1') ?>'});
            	$("#act_mod_aelafuer_dropnum").formValidator({empty: false, onshow: '<?= translate('C_ONLY_NUM') ?>'}).regexValidator({regexp:'intege1',datatype:'enum',onerror:'<?= translate('C_NUM_BIGTHEN_1') ?>'});   

                //圣魂 act_mod_angelbless
            	$("#act_mod_angelbless_goldratio").formValidator({empty: false, onshow: '<?= translate('C_ONLY_NUM') ?>'}).regexValidator({regexp: '^(0\.\d*[1-9])|(1)$',  onerror: '<?= translate('C_NUM_BETTWEEN_0_AND_1') ?>'});
            	$("#act_mod_angelbless_costdiamond").formValidator({empty: false, onshow: '<?= translate('C_ONLY_NUM') ?>'}).regexValidator({regexp: '^(0\.\d*[1-9])|(1)$',  onerror: '<?= translate('C_NUM_BETTWEEN_0_AND_1') ?>'});

                //boss战 act_mod_bossfight
            	$("#act_mod_bossfight_gold").formValidator({empty: false, onshow: '<?= translate('C_ONLY_NUM') ?>'}).regexValidator({regexp:'intege1',datatype:'enum',onerror:'<?= translate('C_NUM_BIGTHEN_1') ?>'});
            	$("#act_mod_bossfight_exp").formValidator({empty: false, onshow: '<?= translate('C_ONLY_NUM') ?>'}).regexValidator({regexp:'intege1',datatype:'enum',onerror:'<?= translate('C_NUM_BIGTHEN_1') ?>'});
            	$("#act_mod_bossfight_mailreward").formValidator({empty: false, onshow: '<?= translate('C_ONLY_NUM') ?>'}).regexValidator({regexp:'intege1',datatype:'enum',onerror:'<?= translate('C_NUM_BIGTHEN_1') ?>'});

            	//购买疲劳值 act_mod_buy_tired
            	$("#act_mod_buy_tired_discount").formValidator({empty: false, onshow: '<?= translate('C_ONLY_NUM') ?>'}).regexValidator({regexp: '^(0\.\d*)[1-9]|1$', onerror: '<?= translate('C_NUM_BETTWEEN_0_AND_1') ?>'});
            	$("#act_mod_buy_tired_tiredparam").formValidator({empty: false, onshow: '<?= translate('C_ONLY_NUM') ?>'}).regexValidator({regexp:'^[1-9]\d*|0$',onerror:'<?= translate('C_NUM_BIGTHEN_0') ?>'});

            	//死亡之塔 act_mod_deadtower
            	$("#act_mod_deadtower_gold").formValidator({empty: false, onshow: '<?= translate('C_ONLY_NUM') ?>'}).regexValidator({regexp:'intege1',datatype:'enum',onerror:'<?= translate('C_NUM_BIGTHEN_1') ?>'});
                $("#act_mod_deadtower_exp").formValidator({empty: false, onshow: '<?= translate('C_ONLY_NUM') ?>'}).regexValidator({regexp:'intege1',datatype:'enum',onerror:'<?= translate('C_NUM_BIGTHEN_1') ?>'});

                //魔王副本 act_mod_devils
                $("#act_mod_devils_challengetime").formValidator({empty: false, onshow: '<?= translate('C_ONLY_NUM') ?>'}).regexValidator({regexp:'^[1-9]\d*|0$',onerror:'<?= translate('C_NUM_BIGTHEN_0') ?>'});

                //精英副本 act_mod_elite
                $("#act_mod_elite_challengetime").formValidator({empty: false, onshow: '<?= translate('C_ONLY_NUM') ?>'}).regexValidator({regexp:'^[1-9]\d*|0$',onerror:'<?= translate('C_NUM_BIGTHEN_0') ?>'});
                
                //副本翻牌 act_mod_fb_card_switch
                $("#act_mod_fb_card_switch_cost_gold").formValidator({empty: false, onshow: '<?= translate('C_ONLY_NUM') ?>'}).regexValidator({regexp: "^(0\.\d*[1-9])|(1)$", onerror: '<?= translate('C_NUM_BETTWEEN_0_AND_1') ?>'}); 
            	$("#act_mod_fb_card_switch_object_reward").formValidator({empty: false, onshow: '<?= translate('C_ONLY_NUM') ?>'}).regexValidator({regexp:'intege1',datatype:'enum',onerror:'<?= translate('C_NUM_BIGTHEN_1') ?>'});

            	//公会技能 act_mod_gangskill
            	$("#act_mod_gangskill_coefficient").formValidator({empty: false, onshow: '<?= translate('C_ONLY_NUM') ?>'}).regexValidator({regexp: "^(0\.\d*)[1-9]|1$", onerror: '<?= translate('C_NUM_BETTWEEN_0_AND_1') ?>'});

            	//荣誉商店 act_mod_honorshop
            	$("#act_mod_honorshop_cost_diamond").formValidator({empty: false, onshow: '<?= translate('C_ONLY_NUM') ?>'}).regexValidator({regexp: "^(0\.\d*)[1-9]|1$", onerror: '<?= translate('C_NUM_BETTWEEN_0_AND_1') ?>'}); 

                //竞技场 act_mod_ladder
            	$("#act_mod_ladder_gold").formValidator({empty: false, onshow: '<?= translate('C_ONLY_NUM') ?>'}).regexValidator({regexp:'intege1',datatype:'enum',onerror:'<?= translate('C_NUM_BIGTHEN_1') ?>'});
            	$("#act_mod_ladder_honorbadge").formValidator({empty: false, onshow: '<?= translate('C_ONLY_NUM') ?>'}).regexValidator({regexp:'intege1',datatype:'enum',onerror:'<?= translate('C_NUM_BIGTHEN_1') ?>'});
            	$("#act_mod_ladder_presitige").formValidator({empty: false, onshow: '<?= translate('C_ONLY_NUM') ?>'}).regexValidator({regexp:'intege1',datatype:'enum',onerror:'<?= translate('C_NUM_BIGTHEN_1') ?>'});
            	$("#act_mod_ladder_challengetime").formValidator({empty: false, onshow: '<?= translate('C_ONLY_NUM') ?>'}).regexValidator({regexp:'^[1-9]\d*|0$',onerror:'<?= translate('C_NUM_BIGTHEN_0') ?>'});
            
            	//普通副本 act_mod_nomalfb
            	$("#act_mod_nomalfb_gold").formValidator({empty: false, onshow: '<?= translate('C_ONLY_NUM') ?>'}).regexValidator({regexp:'intege1',datatype:'enum',onerror:'<?= translate('C_NUM_BIGTHEN_1') ?>'});
            	$("#act_mod_nomalfb_exp").formValidator({empty: false, onshow: '<?= translate('C_ONLY_NUM') ?>'}).regexValidator({regexp:'intege1',datatype:'enum',onerror:'<?= translate('C_NUM_BIGTHEN_1') ?>'});
            	$("#act_mod_nomalfb_object").formValidator({empty: false, onshow: '<?= translate('C_ONLY_NUM') ?>'}).regexValidator({regexp:'intege1',datatype:'enum',onerror:'<?= translate('C_NUM_BIGTHEN_1') ?>'});
            	$("#act_mod_nomalfb_finishexp").formValidator({empty: false, onshow: '<?= translate('C_ONLY_NUM') ?>'}).regexValidator({regexp:'intege1',datatype:'enum',onerror:'<?= translate('C_NUM_BIGTHEN_1') ?>'});
			
            	//决斗之颠 act_mod_topfight
            	$("#act_mod_topfight_yqhft").formValidator({empty: false, onshow: '<?= translate('C_ONLY_NUM') ?>'}).regexValidator({regexp:'^[1-9]\d*|0$',onerror:'<?= translate('C_NUM_BIGTHEN_0') ?>'});

            	//许愿池 act_mod_wishpond
            	$("#act_mod_wishpond_refresh").formValidator({empty: false, onshow: '<?= translate('C_ONLY_NUM') ?>'}).regexValidator({regexp: '^(0\.\d*)[1-9]|1$', onerror: '<?= translate('C_NUM_BETTWEEN_0_AND_1') ?>'}); 
            	$("#act_mod_wishpond_speedup").formValidator({empty: false, onshow: '<?= translate('C_ONLY_NUM') ?>'}).regexValidator({regexp: '^(0\.\d*)[1-9]|1$', onerror: '<?= translate('C_NUM_BETTWEEN_0_AND_1') ?>'}); 
            	$("#act_mod_wishpond_extend").formValidator({empty: false, onshow: '<?= translate('C_ONLY_NUM') ?>'}).regexValidator({regexp: '^(0\.\d*)[1-9]|1$', onerror: '<?= translate('C_NUM_BETTWEEN_0_AND_1') ?>'}); 
            	$("#act_mod_wishpond_seedcost").formValidator({empty: false, onshow: '<?= translate('C_ONLY_NUM') ?>'}).regexValidator({regexp: '^(0\.\d*)[1-9]|1$', onerror: '<?= translate('C_NUM_BETTWEEN_0_AND_1') ?>'}); 
            	$("#act_mod_wishpond_harvest").formValidator({empty: false, onshow: '<?= translate('C_ONLY_NUM') ?>'}).regexValidator({regexp:'intege1',datatype:'enum',onerror:'<?= translate('C_NUM_BIGTHEN_1') ?>'});
            	$("#act_mod_wishpond_probability").formValidator({empty: false, onshow: '<?= translate('C_ONLY_NUM') ?>'}).regexValidator({regexp: '^(0\.\d*)[1-9]|1$', onerror: '<?= translate('C_NUM_BETTWEEN_0_AND_1') ?>'}); 
            	$("#act_mod_wishpond_grouptime").formValidator({empty: false, onshow: '<?= translate('C_ONLY_NUM') ?>'}).regexValidator({regexp: '^(0\.\d*)[1-9]|1$', onerror: '<?= translate('C_NUM_BETTWEEN_0_AND_1') ?>'});   
        	 
            	//地精模块
            	$("#act_mod_treasurebox_lowten").formValidator({empty: false, onshow: '<?= translate('C_NOT_EMPTY') ?>'}).regexValidator({regexp: '^(0\.\d*[1-9])|(1)$',  onerror: '<?= translate('C_NUM_BETTWEEN_0_AND_1') ?>'});
            	$("#act_mod_treasurebox_highten").formValidator({empty: false, onshow: '<?= translate('C_NOT_EMPTY') ?>'}).regexValidator({regexp:'^(0\.\d*[1-9])|(1)$', onerror: '<?= translate('C_NUM_BETTWEEN_0_AND_1') ?>'});            	
            	$("#act_mod_treasurebox_lowone").formValidator({empty: false, onshow: '<?= translate('C_NOT_EMPTY') ?>'}).regexValidator({regexp: '^(0\.\d*[1-9])|(1)$',  onerror: '<?= translate('C_NUM_BETTWEEN_0_AND_1') ?>'});
            	$("#act_mod_treasurebox_highone").formValidator({empty: false, onshow: '<?= translate('C_NOT_EMPTY') ?>'}).regexValidator({regexp:'^(0\.\d*[1-9])|(1)$', onerror: '<?= translate('C_NUM_BETTWEEN_0_AND_1') ?>'});

            	
                });
        </script>
    </body>
</html>
